package library.operation;

import library.Book;
import library.BookList;

//查看书籍列表
public class ListOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        for (int i = 0;i < bookList.getSize();i++) {
            Book book = bookList.getBook(i);
            System.out.println("[" + i + "]" +book);
        }
        return;
    }
}
